<ion-view title="商品详情">
    <!--<ion-nav-buttons side="right">-->
        <!--<a class="button button-icon icon ion-plus-round" href="#/app/addGoods/{{data.category}}"></a>-->

    <!--</ion-nav-buttons>-->
    <ion-nav-buttons side="right">
        <a class="button button-icon icon ion-home" href="#/app/boxs"></a>
    </ion-nav-buttons>
  <ion-content class="has-header" has-bouncing="true" overflow-scroll="false">
      <ion-slide-box  auto-play="true"  slide-interval="4000" on-slide-changed="slideHasChanged($index)" style="height: 300px;">
          <ion-slide ng-repeat="imagedata in data.imgData">
             <img ng-src="data:image/jpeg;base64,{{imagedata}}" width="100%">
          </ion-slide>

      </ion-slide-box>
      <!--<img ng-src="data:image/jpeg;base64,{{data.imgData}}" style="width: 100%;height: 300px">-->
      <div style="padding: 10px">
          <div style="color: #808080">{{data.name}}({{data.sort}})</div>
          <div style="font-size: 18px;margin-top: 10px;color: #ffb108">
              ￥{{data.price}}
          </div>
          <div style="margin-top: 10px">
              已上架数目：{{data.sellNum}}

          </div>
          <div style="margin-top: 10px">
              库存：{{data.num}}

          </div>
          <div style="margin-top: 10px">
              属性描述：{{data.attr}}
          </div>
          <div style="margin-top: 10px">
              <div class="button-bar">
                  <a class="button button-balanced button-small" style="" ng-click="sellGoods()"><b>商品上架</b></a>
                  <a class="button button-royal button-small" href="#/app/sellPar/{{data._id}}"><b>上架详情</b></a>
              </div>
          </div>
      </div>
      <div style="text-align: center;">
          <div id="testId" ng-if="show" class="alert">
              <span style="padding: 10px;background-color: #000000;color: #ffffff">{{message}}</span>
          </div>
      </div>
  </ion-content>
    <ion-footer-bar>
        <div class="button-bar">
            <a class="button button-positive" style="font-size:16px;" href="#/app/changGoods/{{data._id}}"><b>修改</b></a>
            <a class="button button-assertive" style="font-size:16px;" ng-click="showConfirm()"><b>删除</b></a>
        </div>
    </ion-footer-bar>
</ion-view>

